package com.gillion.grule.client.components;

import com.gillion.grule.client.core.Component;
import com.gillion.grule.client.core.Context;
import com.gillion.grule.client.core.ExecuteComponent;



@Component("Variable")
public class VariableComponent extends ExecuteComponent
{
    public <T> T execute(String express, Context context) {
        String[] args = express.split("\\|");
        return (T)context.getPackageVariable().getVariable(args);
    }
}
